﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="member_list.aspx.cs" Inherits="MxWeiXinPF.Web.admin.toupiao.member_list" %>


<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <title>高级投票</title>
    <%=PageJSAndStype("list").ToString() %>

    <script type="text/javascript">
        function parentToIndex(id) {
            parent.location.href = "/admin/Index.aspx?id=" + id;

        }

        $(function () {


        });



    </script>

    <style>
        a.shenghe {
            color: red;
        }
    </style>

</head>
<body class="mainbody">
    <form id="form1" runat="server">
        <!--导航栏-->
        <div class="location">
            <a href="action_list.aspx" class="back"><i class="iconfont icon-up"></i><span>返回投票活动列表</span></a>
            <i class="arrow iconfont icon-arrow-right"></i>
            <span>活动【<asp:Literal ID="litactName" runat="server"></asp:Literal>】</span>
            <i class="arrow iconfont icon-arrow-right"></i>
            <span>结果管理</span>
        </div>
        <div class="line10"></div>
        <!--/导航栏-->

        <!--工具栏-->
        <div id="floatHead" class="toolbar-wrap">
            <div class="toolbar">
                <div class="box-wrap">
                    <a class="menu-btn"></a>
                    <div class="l-list">

                        <ul class="icon-list">

                            <li><a class="icon-btn add" href="member_info.aspx?action=<%=MxWeiXinPF.Common.MXEnums.ActionEnum.Add %>&actid=<%=actId %>" id="itemBlackButton"><i class="iconfont icon-close"></i><span>添加投票项</span></a></li>
                            <li><a class="all" href="javascript:;" onclick="checkAll(this);"><i class="iconfont icon-check"></i><span>全选</span></a></li>
                            <li>
                                <asp:LinkButton ID="btnDelete" runat="server" CssClass="del" OnClientClick="return ExePostBack('btnDelete');" OnClick="btnDelete_Click"><i class="iconfont icon-delete"></i><span>删除</span></asp:LinkButton></li>

                        </ul>
                        <div class="menu-list">

                            <div class="rule-single-select">
                                <asp:DropDownList ID="ddlSort" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlSort_SelectedIndexChanged">
                                    <asp:ListItem Value="isNormal" Selected="True">排序方式</asp:ListItem>
                                    <asp:ListItem Value="isNew">最新</asp:ListItem>
                                    <asp:ListItem Value="isMax">票数最多</asp:ListItem>
                                    <asp:ListItem Value="isSmall">票数最少</asp:ListItem>
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>


                    <div class="r-list">
                        <asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword" />
                        <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="btn-search" OnClick="btnSearch_Click"><i class="iconfont icon-search"></i></asp:LinkButton>



                    </div>
                </div>
            </div>
        </div>
        <!--/工具栏-->

        <!--列表-->

        <asp:Repeater ID="rptList" runat="server">
            <HeaderTemplate>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
                    <thead>
                        <tr>
                            <th>选择</th>
                            <th>姓名</th>
                            <th>编码</th>
                            <th>状态</th>
                            <th>票数</th>
                            <th>图片</th>
                            <th>排序</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody class="ltbody">
            </HeaderTemplate>
            <ItemTemplate>
                <tr class="td_c">
                    <td>
                        <asp:CheckBox ID="chkId" CssClass="checkall" runat="server" Style="vertical-align: middle;" />
                        <asp:HiddenField ID="hidId" Value='<%#Eval("id")%>' runat="server" />
                    </td>
                    <td>
                        <%# Eval("name") %>
                    </td>

                    <td>
                        <%# Eval("bianma") %> 
                    </td>
                    <td>
                        <%# Eval("status_s")%> 
                    </td>
                    <td>
                        <%# Eval("piao") %>
                    </td>
                    <td>
                        <img src=" <%# Eval("imgurl") %>" style="max-height: 50px; max-width: 50px;" />
                    </td>
                    <td>
                        <%# Eval("sort_id") %>
                    </td>
                    <td>
                        <a href="member_info.aspx?action=<%#MxWeiXinPF.Common.MXEnums.ActionEnum.Edit %>&id=<%#Eval("id")%>&actid=<%=actId %>" title="编辑" class="edit">编辑</a>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"8\">暂无记录</td></tr>" : ""%>
                 </tbody>
                </table>
           
            </FooterTemplate>
        </asp:Repeater>

        <!--/列表-->

        <!--内容底部-->
        <div class="line20"></div>
        <div class="pagelist">
            <div class="l-btns">
                <span>显示</span><asp:TextBox ID="txtPageNum" runat="server" CssClass="pagenum" onkeydown="return checkNumber(event);" OnTextChanged="txtPageNum_TextChanged" AutoPostBack="True"></asp:TextBox><span>条/页</span>
            </div>
            <div id="PageContent" runat="server" class="default"></div>
        </div>
        <!--/内容底部-->
    </form>
</body>
</html>
